"""
for循环：数一数有几个a
"""
name = "i am an engineer and i have a computer"
count = 0
for x in name:
    if x == 'a':
        count += 1
print(f"{name}中共包含有：{count}个字母a")
